package com.cassio.stores.util;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;

public class MessageUtil {

	public static void confirmMessage(Context context, int messageId, OnClickListener positiveListener, OnClickListener negativeListener) {
		new AlertDialog.Builder(context).setMessage(messageId).setPositiveButton(android.R.string.ok, positiveListener)
				.setNegativeButton(android.R.string.cancel, negativeListener).show();
	}
	
	public static void confirmMessage(Context context, String message, OnClickListener positiveListener, OnClickListener negativeListener) {
		new AlertDialog.Builder(context).setMessage(message).setPositiveButton(android.R.string.ok, positiveListener)
		.setNegativeButton(android.R.string.cancel, negativeListener).show();
	}

}
